﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Bird : Animal,IFly
    {
        protected string name { get; set; }



        public Bird(string eat, string name) : base(eat)
        {
            this.name = name;
        }
        public override void chi()
        {
            Console.WriteLine("我是：{0}，我会吃东西：{1}", this.name, this.eat);
        }
       
        public void Fly()
        {
            Console.WriteLine("我要起飞了。");
        }
        public void TakeOff()
        {
            Console.WriteLine("我会飞，无忧无虑。");
        }
        public void Land()
        {
            Console.WriteLine("我要下降落地了。");
        }

        
        public void layeggs()
        {
            Console.WriteLine("我会下蛋。");
        }
    }
}
